<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="GlobalVar.jsp" %>
<%@ include file="common.jsp" %>
<c:if test="${param.mc!=null}">
    <jsp:setProperty name="user" property="*"/>
    <c:forEach var="cr" items="${user.datebyid}">
        <c:choose>
            <c:when test="${cr.mm==param.mm}">
                <%
        session.setAttribute("UserName", request.getParameter("mc"));
        out.println("<script language='javascript'>alert('登陆成功！！');window.location.href='bookstore.jsp';</script>");
                %>
            </c:when>
            <c:otherwise>
                <%
out.println("<script language='javascript'>alert('登陆失败！！');window.location.href='bookstore.jsp';</script>");
                %>
            </c:otherwise>
        </c:choose>
    </c:forEach>
</c:if>

